<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Crud_model extends CI_Model {
		
	public function __constructor()
	{  
	    parent::Model();  
	}
	function index()
	{
		
	}
	
	function delete($id)
	{
		$this->db->where('id_slider',$id);
		$this->db->delete('home_slider');	
	}
	
	function delete_user($id)
	{
		$this->db->where('id_login',$id);
		$this->db->delete('land_user_login');	
	}

	function delete_message($id)
	{
		$this->db->where('id_contact_infos',$id);
		$this->db->delete('contact_infos');	
	}

	function delete_partenaires($id)
	{
		$this->db->where('id_partenaires',$id);
		$this->db->delete('home_partenaires');	
	}

	function delete_produits($id)
	{
		$this->db->where('id_produits',$id);
		$this->db->delete('home_produits');	
	}
	
	function update_about_fr($id,$data)
	{
		$this->db->where('id_about',$id);
		$this->db->update('home_about',$data);	
	}
	
	function update_service_home($id,$data)
	{
		$this->db->where('id_service',$id);
		$this->db->update('home_produits_service',$data);	
	}
	
	
	
}
?>